package cn.tedu.bonfire.front.content.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("article_like_collect")
public class LikeCollect {

    /*点赞和收藏id */
    @TableId(type = IdType.AUTO)
    private Long id;
    /*用户id */
    private Long userId;
    /*笔记id */
    private Long articleId;
    /*0无状态 1点赞 2收藏 3点赞和收藏 */
    private Integer state;

    @TableField(fill = FieldFill.INSERT)
    /*数据创建时间*/
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    /*数据最后修改时间*/
    private LocalDateTime updateTime;
}
